// .vitepress/theme/index.ts
import Teek from "vitepress-theme-teek";
// import NProgress from 'nprogress'
// import 'nprogress/nprogress.css'
import "vitepress-theme-teek/index.css";
import './custom.css'
// import { initComponent } from 'vitepress-plugin-legend/component';
// import 'vitepress-plugin-legend/dist/index.css';
export default {
  extends: Teek,
  enhanceApp({ app }) {
    // initComponent(app);
  },
  // enhanceApp({ app, router, siteData }) {
    
  //   console.dir(router)

  //   if(typeof window !== 'undefined'){
  //     router.onBeforeRouteChange = ()=>{
  //       NProgress.start();
  //       console.log('before');
        
  //     }
  //     router.onAfterRouteChange = (to)=>{
  //       NProgress.done();
  //       console.log('after');
  //     }
  //   }

  // }
};